page {
  font-size: 28rpx;
  line-height: 1;
  color: #222;
  background: #F3F7F0;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom);
  max-width: 640px;
  margin: 0 auto;
}

button {
  color: #333;
}

page,
view,
input,
text,
form,
navigator,
rich-text,
picker,
scroll-view,
cover-view,
open-data,
div {
  box-sizing: border-box;
}

rich-text,
open-data,
form {
  display: block;
}

cover-view {
  line-height: 1;
  white-space: normal;
}

/* float */
.fl {
  float: left;
}

.fr {
  float: right;
}

.dpn {
  display: none;
}

.clearfix:after {
  content: '.';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.cf6 {
  color: #c7a769;
}

.bgf {
  background: #fff;
}

.rel {
  position: relative;
}

.tac {
  text-align: center;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
  display: none;
}

button:after {
  border: 0;
}

.flex-box {
  display: flex;

  .flex-item {
    flex: 1;
  }
}

.footer-box {
  height: 100rpx;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-box {
  display: flex;

  .flex-item {
    flex: 1;
  }
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-start {
  display: flex;
  align-items: center;
}

.flex-row-center {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.flex-column-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* // 单双行换行 */
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ellipsis2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /*! autoprefixer: ignore next */
  -webkit-box-orient: vertical;
}


// 自定义样式
.primary {
  color: $primary;
}

.status_bar {
  height: var(--status-bar-height);
  width: 100%;
}